# -*- coding: utf-8 -*-

if __name__ == '__main__':
    file_name ="./test3.txt"
    file_obj = open(file_name, 'w')
    lines = ["这是第%i行\n" %n for n in range(100)]
    file_obj.writelines(lines)
    file_obj.close()